<template>
    <div class="electronic-form-block">
        <div class="electronic-title">企业报关员信息</div>
        <Table :data="value" :columns="columns">
            <template slot-scope="{ row }" slot="goodCustomsDeclarer">
                {{ row.goodCustomsDeclarer ? '是' : '否'}}
            </template>
        </Table>
    </div>
</template>
<script>
export default {
    props: {
        value: {
            type: Array,
            default: () => []
        }
    },
    data () {
        return {
            columns: [
                {
                    title: '序号',
                    type: 'index',
                    width: 60,
                    align: 'center'
                },
                {
                    title: '报关员姓名',
                    key: 'name',
                    align: 'center'
                },
                {
                    title: '报关员证号',
                    key: 'idNum',
                    align: 'center'
                },
                {
                    title: '报关员手机号',
                    key: 'mobile',
                    align: 'center'
                },
                {
                    title: '报关员电子邮箱',
                    key: 'email',
                    align: 'center'
                },
                {
                    title: '是否是优秀报关员',
                    slot: 'goodCustomsDeclarer',
                    align: 'center'
                },
                {
                    title: '优秀报关员服务日期',
                    key: 'serviceDate',
                    align: 'center'
                },
                {
                    title: '评定单位',
                    key: 'selectionUnit',
                    align: 'center'
                }
            ]
        }
    }
}
</script>
